<template>
    <div class="demo2">
        <h2>学生</h2>
        <h2>学生名称: {{name}}</h2>
        <h2>学校年龄: {{age}}</h2>
    </div>
</template>

<script>
    export default { // export default is required
        name: 'StudentComponent',
        data() {
            return {
                name: '清华大学',
                age: '北京市海淀区'
            }
        }}
</script>

<style>
    .demo2 {
        border: 1px solid #d41b1b;
        padding: 100px;
        margin: 10px;
        background: #03f70f;
    }
</style>